package all.com.jinyongqunxiax.modules;

import all.com.jinyongqunxiax.R;
import androidx.appcompat.app.AppCompatActivity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import all.com.jinyongqunxiax.databinding.DrawTestActivityBinding;
import androidx.databinding.DataBindingUtil;

public class DrawTestActivity extends AppCompatActivity {
    private Options                 options;
    private DrawTestActivityBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // setContentView(R.layout.draw_test_activity);
        binding = DataBindingUtil.setContentView(this, R.layout.draw_test_activity);

    }

    public static class Options {
        String mod;
        String item;
        Options(Intent intent) {
            this.mod = intent.getStringExtra("mod");
            this.item = intent.getStringExtra("item");
        }

        static Intent intent(Context context, String mod, String item) {
            Intent intent = new Intent(context, DrawTestActivity.class);
            intent.putExtra("mod", mod);
            intent.putExtra("item", item);
            return intent;
        }
    }
}
